package com.hoshiicloud.lessee.feign;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.lessee.feign.hystrix.HystrixAuthFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @program: hoshiibuy
 * @description: 登录验证服务
 * @author: Mr.wu
 * @create: 2019-06-24 14:20
 **/
@FeignClient(name = "hoshiicloud-auth",fallbackFactory = HystrixAuthFeignFallback.class)
public interface AuthFeignService {
    @PostMapping(value = "/lessee-login")
    Response lesseeLogin(@RequestParam("userName") String userName,
                   @RequestParam("password") String password, @RequestParam("userType") String userType,
                         @RequestParam("privateDomain") String privateDomain);

    @PostMapping(value = "/logout2")
    Response logout2(@RequestBody String key);
}
